package com.imooc.config;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @ClassName PkgTypeAspectConfig
 * @Description TODO
 * @Author Wxg
 * @Date 2018/11/14 14:49
 * @Version 1.0
 */
@Aspect
@Component
public class PkgTypeAspectConfig {
    @Pointcut("within(com.imooc.service.ProductService)")
    public void matchType(){}

    @Before("matchType()")
    public void before(){
        System.out.println();
        System.out.println("###before");
    }
}
